package cn.com.coding.system.service.impl;

import cn.com.coding.common.utils.PageUtil;
import cn.com.coding.common.utils.Query;
import cn.com.coding.system.dao.ProductCarouselDao;
import cn.com.coding.system.domin.ProductCarouselEntity;
import cn.com.coding.system.service.ProductCarouselService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("productCarouselService")
public class ProductCarouselServiceImpl extends ServiceImpl<ProductCarouselDao, ProductCarouselEntity> implements ProductCarouselService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<ProductCarouselEntity> page = this.page(
                new Query<ProductCarouselEntity>().getPage(params),
                new QueryWrapper<ProductCarouselEntity>()
        );

        return new PageUtil(page);
    }

}